package com.swt.testdemo.form;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotBlank;

/**
 * @author BleethNie
 * @version 1.0
 * @date 2020/11/14 16:11
 **/

@Data
@ApiModel(value = "编辑实体表单")
public class EditEntityForm {
    @ApiModelProperty(value = "实体id", example = "1")
    @NotBlank(message = "实体id不可为空")
    private Integer entityId;

    @ApiModelProperty(value = "实体名称", example = "化学品昵称")
    private String ontologyName;

    @ApiModelProperty(value = "实体同义词")
    private String ontologySynonym;


    @ApiModelProperty(value = "使用实体图标")
    private Integer iconId;

    @ApiModelProperty(value = "实体节点尺寸")
    @Range(min = 1,max = 10,message = "尺寸大小必须在1-10之间")
    private Integer iconScale;


}
